package mock.bo;

import java.sql.Date;
import java.util.List;

import mock.dto.LogTransferDTO;
import mock.dto.LogViewDTO;

public interface ViewHistory {
	
	/**
	 * tinh toan thoi gian bat dau lay
	 * @param subDate
	 * @return
	 */
	 Date calculateStartDate(String subDate);
	
	/**
	 * lay so trang va so ket qua o trang cuoi cung
	 */
	 int getNumberOfPage(int size);
	 
	 /**
	  * lay history va tra ve theo dang list
	  */
	 List<LogTransferDTO> getLogTransferByCardNoAndStartDate(String cardNo, String subDate);
	 
	 /**
	  * lay type cua log
	  */
	 String getLogTypeByLogTypeID(int logTypeID);
	 
	 /**
	  * lay ten khach hang bang account ID
	  */
	 String getCustomerNameByAccountID(int accountID);
	 
	 /**
	  * lay dia chi atm
	  */
	 String getATMAddressByATMID(int ATMID);
	 
	 /**
	  * lay list bang cardNo, timeAgo, tra ve list cho action hien thi len man hinh
	  */
	 List<LogViewDTO> getLogViewByATMIDAndCardNoAndTimeAgo(String cardNo, String timeAgo, int currentPage);
	 
	 /**
	  * lay so trang toi da
	  */
	 int getMaxPage(String cardNo, String timeAgo);

}
